Skip to content

add slowfast model to video classification - #4815

Merged
shippingwang merged 6 commits into
PaddlePaddle:developfrom
huangjun12:SlowFast
Sep 1, 2020
Merged

shippingwang merged 6 commits into
PaddlePaddle:developfrom
huangjun12:SlowFast

Conversation

@huangjun12

Copy link
Copy Markdown
Collaborator

add slowfast model to video classification

Comment thread dygraph/slowfast/train.py Outdated
)

use_data_parallel = args.use_data_parallel
place = fluid.CUDAPlace(fluid.dygraph.parallel.Env().dev_id) \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can it suport cpu device?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread dygraph/slowfast/train.py
for batch_id, data in enumerate(train_loader):
batch_reader_end = time.time()
y_data = data[2]
labels = to_variable(y_data)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to_variable之后,网络之前,建议添加个耗时统计,对于性能优化预计有较大帮助

@shippingwang
shippingwang self-requested a review August 28, 2020 07:34
Comment thread dygraph/slowfast/eval.py Outdated
parser.add_argument(
'--weights',
type=str,
default="checkpoints/slowfast_epoch195",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default is None?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@shippingwang shippingwang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shippingwang
shippingwang merged commit 2c8b76b into PaddlePaddle:develop Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants